SET IDENTITY_INSERT [dbo].[store] ON; Select * from store where store_id = 299; if @@ROWCOUNT =0 BEGIN INSERT INTO store ( Store_ID, Description, CompanyName, TradingAs, Address, ContactNo, VATRegNo, RegNo, StoreEmailAddress ) VALUES ('299', 'Cash Crusaders Watercrest','Cash Crusades Stores (Pty)Ltd','Cash Crusaders Watercrest','ShopLG12 Watercrest Shopping Centre, 141 Inanda Road, Waterfall','0310027872','4270290184','2020/027120/07','watercrestmgr@crusadersstores.co.za'); END ELSE BEGIN UPDATE Store set Description = 'Cash Crusaders Watercrest',CompanyName = 'Cash Crusades Stores (Pty)Ltd', TradingAs = 'Cash Crusaders Watercrest', Address='ShopLG12 Watercrest Shopping Centre, 141 Inanda Road, Waterfall', ContactNo = '0310027872', VATRegNo = '4270290184',RegNo = '2020/027120/07', StoreEmailAddress = 'watercrestmgr@crusadersstores.co.za' where Store_ID = 299; END SET IDENTITY_INSERT [dbo].[store] off